<html>
<head>
<title></title>
</head>
<body>
<script type='text/javascript'>
var tabla="table"; var celda="td"; var fila="tr";
function matriz(n,m) {
    document.writeln( "<"+tabla+">"); 
    for (i=1; i<=n; i++ ) { 
        document.writeln( "<"+fila+">"); 
        for ( j=1; j<=m; j++ ) { 
            document.writeln ("<"+celda+">"+i*j+"</"+celda+">"); 
        } 
    document.writeln ("</"+fila+">\n");  
    } 
    document.writeln ("</"+tabla+">");
}
matriz(10,3);
</script>
</body>

</html>
